package com.atguigu.stgy.admin.controller;

import com.atguigu.stgy.admin.service.SystemPostService;
import com.atguigu.stgy.model.entity.SystemPost;
import com.atguigu.stgy.model.result.R;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * 岗位信息表(system_post)表控制层
 *
 * @author xxxxx
 */
@RestController
@RequestMapping("/admin/system/post")
public class SystemPostController {
    /**
     * 服务对象
     */
    @Resource
    private SystemPostService systemPostService;

///admin/system/post/list
    @GetMapping("list")
    public R<List<SystemPost>> list(){
        return R.ok(systemPostService.list());
    }
}
